<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
    <title>Controller测试</title>
</head>
<body>
    <h1>文章列表</h1>
	<table class="table table-striped table-bordered">
		<thead>
			<tr>
				<th>文章ID</th>
				<th>文章标题</th>
				<th>文章内容</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<tr th:each="a:${articlelist}">
			<td th:text="${a.ArticleID}"></td>
			<td th:text="${a.Title}"></td>
			<td th:text="${a.Content}"></td>
			<td>
				<a th:href="@{/user/update(id=${a.ArticleID})}" class="btn btn-primary btn-sm">修改</a>
				<a th:href="@{/user/delete(id=${a.ArticleID})}" onclick="return confirm('确定要删除吗')" class="btn btn-danger btn-sm">删除</a>
			</td>
		</tr>
		</tbody>
	</table>

</body>
</html>